home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1994 August: Tool Chest / Dev.CD Aug 94.toast / Tool Chest / Developer Utilities / Installer 4.0GM SDK / Script Examples / Preference Resource / Setup Proc.r < prev    next >
Encoding:
Text File  |  1994-02-10  |  1.8 KB  |  93 lines  |  [TEXT/MPS ]

  1. include "SetupFunction";
  2.  
  3. #include "InstallerTypes.r"
  4.  
  5.  
  6. /************************** Target File Spec. resources **********************************/
  7. resource 'intf' (10000) {
  8.     format0 {
  9.         noSearchForFile,
  10.         TypeCrMustMatch,
  11.         'APPL',
  12.         'ttxt',
  13.         0,
  14.         "folder-user:TeachText"
  15.     }
  16. };
  17.  
  18. /************************** Source File Spec. resources **********************************/
  19. resource 'infs' (20000) {
  20.     'APPL',
  21.     'ttxt',
  22.     0x1,
  23.     noSearchForFile,
  24.     TypeCrMustMatch,
  25.     "Tidbits:TeachText"
  26. };
  27.  
  28. /************************** File Atom resource **********************************/
  29. resource 'infa' (10000) {
  30.     format1 {
  31.         deleteWhenRemoving,
  32.         deleteWhenInstalling,
  33.         copy,
  34.         dontIgnoreLockedFile,
  35.         dontSetFileLocked,
  36.         useVersProcToCompare,
  37.         srcNeedExist,
  38.         rsrcForkInRsrcFork,
  39.         leaveAloneIfNewer,
  40.         updateExisting,
  41.         copyIfNewOrUpdate,
  42.         rsrcFork,
  43.         dataFork,
  44.         0,
  45.         0,
  46.         10000,
  47.         {    20000, 0, 0
  48.         },
  49.         0x0,
  50.         0,
  51.         0,
  52.         ""
  53.     }
  54. };
  55.  
  56. /************************** Package resource **********************************/
  57. resource 'inpk' (20037) {
  58.     format0 {
  59.         showsOnCustom,
  60.         notRemovable,
  61.         dontForceRestart,
  62.         0,
  63.         0,
  64.         "TeachText",
  65.         {    
  66.             'infa', 10000,
  67.         }
  68.     }
  69. };
  70.  
  71. /************************** Preference resource **********************************/
  72. resource 'inpr' (300) {
  73.     format0 {
  74.         useFolderTargetMode,            // Tells the Installer which interface to use, either disk based or folder based
  75.         dontAllowUserToSetSystemDisk,    // Restricts user from changing System Disk
  76.         showSelectedSizeInCustom,
  77.         setupFunctionSupplied,            // Tells Installer to call Setup Function
  78.         dontAllowCleanInstall,
  79.         dontAllowServerAsTarget,
  80.         'infn',                            // Setup Function code resource type
  81.         147,                            // Setup Function code resource ID
  82.         {    /* array helpPagelist: 2 elements */
  83.             /* [1] */    301, 311, 301, 311,
  84.             /* [2] */    302, 312, 302, 312
  85.         },
  86.         "Applications"        // Default Target Folder name
  87.     }
  88. };
  89.  
  90.  
  91.  
  92.  
  93.